package cn.jetpiece.cloud.joss.sdk.config.properties;

/**
 * @author XuJZ
 * @since 2021/1/19
 */
public class OssApiProperties {
    /**
     * 前缀
     */
    public static final String PREFIX = "jetpiece.joss.sdk";

    /**
     * 访问地址
     */
    private String serverAddr;

    /**
     * 公钥
     */
    private String accessKey;

    /**
     * 密钥
     */
    private String secretKey;

    /**
     * 默认桶名称
     */
    private String defaultBucketName;

    /**
     * 默认访问策略,1:私有,2:公共可读,3:公共读写
     */
    private Integer defaultAcl = 1;


    public String getServerAddr() {
        return serverAddr;
    }

    public void setServerAddr(String serverAddr) {
        this.serverAddr = serverAddr;
    }

    public String getAccessKey() {
        return accessKey;
    }

    public void setAccessKey(String accessKey) {
        this.accessKey = accessKey;
    }

    public String getSecretKey() {
        return secretKey;
    }

    public void setSecretKey(String secretKey) {
        this.secretKey = secretKey;
    }

    public String getDefaultBucketName() {
        return defaultBucketName;
    }

    public void setDefaultBucketName(String defaultBucketName) {
        this.defaultBucketName = defaultBucketName;
    }

    public Integer getDefaultAcl() {
        return defaultAcl;
    }

    public void setDefaultAcl(Integer defaultAcl) {
        this.defaultAcl = defaultAcl;
    }

}
